package com.example.mapper;

import com.example.entity.Good;
import com.example.entity.Params;
import com.example.entity.Type;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodMapper {
    List<Good> findBySearch(@Param("params") Params params);

    @Select("select * from  good where id=#{id}")
    Good selectById(Integer id);

    int deleteById(Integer id);

    int add(Good good);

    int update(Good good);

    List<Good> selectAll();
}
